/**
 * Copyright (C) 2020 Baidu, Inc. All Rights Reserved.
 */
package com.baidu.mpks.backendweb.source.service;

import com.baidu.mpks.backendweb.source.domain.DataSourceStatisticDayContentTypeVO;
import com.baidu.mpks.backendweb.source.domain.DataSourceStatisticDayInputTypeVO;
import com.baidu.mpks.backendweb.source.domain.DataSourceStatisticDayTrendVO;
import com.baidu.mpks.datasource.domain.Source;

import java.util.List;
import java.util.Map;

/**
 * @author cuixuefei
 */
public interface SourceStatisticService {
    List<Source> addSourceTotal(List<Source> sourceList, List<String> contentTypes, List<String> inputList);

    void addSourceTotal();

    void updateSourceTotal(String contentType, List<Source> sources);

    List<DataSourceStatisticDayContentTypeVO> queryContentTypeData(List<String> contentTypes);

    List<DataSourceStatisticDayInputTypeVO> queryInputTypeData();

    Map<String, List<DataSourceStatisticDayTrendVO>> queryDataTrend(long beginDate, long endDate);

    List<Map> queryNodeFilesTotal(List<Map> treeNodeList, String contentType);

    public long getNodeTotalByNodeId(int nodeId, String contentType);
}
